import java.util.Scanner;

public class TestDemo {
    //1.psvm  2.sout

    public static void test1() {
        int a = 99;
        short s = 0;
        //s = (short) (s + a);
        s += a;//自动类型转换
        System.out.println(s);
    }

    public static void test2(){
        System.out.println(10 > 20 && 10 / 0 == 0);
        //&和|不支持短路求值
        //System.out.println(10 > 20 & 10 / 0 == 0);

    }

    public static void test3(){
        //负数算数左移补0，右移补符号位
        System.out.println(-1 << 1);
        //java中负数右移如果有余数，会向上取负数的整
        System.out.println(-1 >> 1);
        //>>>相当于逻辑右移
        System.out.println(-1 >>> 1);
    }

    public static void main(String[] args) {
        //输入的使用方法
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            int year = scanner.nextInt();
            if(year % 100 == 0) {
                if(year % 400 == 0) {
                    System.out.println("is century leapyear!");
                } else {
                    System.out.println("not leapyear...");
                }
            } else {
                if(year % 4 == 0) {
                    System.out.println("is normal leapyear!");
                } else {
                    System.out.println("not leapyear...");
                }
            }
        }
    }
}
